import ElementPlus from "element-plus"
import * as Mappings from "./mappings"
import * as CustomComponents from "./components"
const install = app => {
	app.use(ElementPlus)

	//  注册所有映射组件
	Object.keys(Mappings).forEach(key => {
		app.component(key, Mappings[key])
	})
	// 注册自定义组件
	Object.keys(CustomComponents).forEach(key => {
		app.component(key, CustomComponents[key])
	})
}

export default { install }
export * from "./mappings" // 导出所有组件
export * from "./components" // 导出自定义组件
